/*******************************************************************
 * 外语翻译平台(translate) 
 *
 * 成都一亿信息技术公司 版权所有
 * 
 * Copyright (C) 2010 Transer Information Technology Co., Ltd.
 *
 * @Version : 1.0  2010-12-26 下午08:51:45
 *
 * TranserActionSupport.java 
 *
 *******************************************************************/
package com.transer.web.action;

import com.opensymphony.xwork2.ActionSupport;
import com.transer.persistance.bean.User;

/**
 * class defination are there
 * 
 * @author Mark
 * 
 * @version 1.0 ywengineer@gmail.com
 * 
 */
public class TranserActionSupport extends ActionSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8090961173306601141L;

	// 登陆用户
	protected User user;

	/**
	 * @return the user
	 */
	public User getUser() {
		return user;
	}

	/**
	 * @param user
	 *            the user to set
	 */
	public void setUser(User user) {
		this.user = user;
	}

	public boolean hasFieldErrors(String fieldName) {
		return getFieldErrors().get(fieldName) != null;
	}
}
